#ifndef CHATDIALOG_H
#define CHATDIALOG_H

#include <QtGui>
#include "ip_window_list.h"

#ifdef _cplusplus
extern "C" {
#endif

#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <arpa/inet.h>

#ifdef _cplusplus
}
#endif

class ChatDialog : public QDialog
{
    Q_OBJECT
public:
    explicit ChatDialog(QWidget *parent, in_addr connect_to_ip);
    ~ChatDialog();
    struct sockaddr_in sendMsgTo;
    int send_msg_sock;
    QTextEdit *chatHistory;
    QLineEdit *msgInput;
    QVBoxLayout *mainLayout;
    QList<ip_window_list> *sessionList;

signals:

public slots:
    void msgEntered();

};

#endif // CHATDIALOG_H
